Skip to content

Dynamic analysis#137

Merged
timlnx merged 5 commits into
masterfrom
dynamic-analysis
May 16, 2026
Merged

Dynamic analysis#137
timlnx merged 5 commits into
masterfrom
dynamic-analysis

Conversation

@timlnx
Copy link
Copy Markdown
Owner

@timlnx timlnx commented May 5, 2026

Short description: Adds dynamic code analysis

In the interest of being a trustworthy library for people on the Internet, we are adding dynamic code analysis to supplement the existing static code analysis.

Also bumps VERSION in preparation for next minor release.

Closes #134

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 5, 2026

Coverage

Test Coverage Report
FileStmtsMissCoverMissing
__init__.py6660100% 
TOTAL6660100% 

@github-advanced-security
Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

timlnx added 5 commits May 15, 2026 22:00
hatchling sources the version from the VERSION file, so a single edit
to that file propagates to the package, the man page, and the docs.
Run bandit over bitmath/ and tests/ as a dedicated GitHub Actions
workflow (push, pull request, weekly) and as part of make ci, so the
local build catches the same issues CI does.
Add the bandit workflow status badge and update the PyPI version and
license badges.
Reorganize and tighten the docsite. listdir() now emits a
DeprecationWarning and will be removed in a future release; getsize()
and listdir() accept pathlib.Path arguments.

Closes #27
Finishes the Python 2 to 3 cleanup of the numeric internals.

- Remove dead Py2-era float() casts from division expressions, where
  Python 3 true division already yields a float
- Force float on the three constructor paths (bytes=, bits=, and the
  Bit value constructor) that previously leaked int, so .bytes and
  .bits return float regardless of how an instance was built
- Add regression tests pinning the float invariant
- Document the uniform float behavior in the Rules for Math appendix
- Add the bitmath-2.1.0 NEWS section and bump VERSION to 2.1.0
@timlnx timlnx force-pushed the dynamic-analysis branch from 24846b8 to 80fdaca Compare May 16, 2026 03:05
@timlnx timlnx merged commit 81aeafd into master May 16, 2026
38 checks passed
@timlnx timlnx deleted the dynamic-analysis branch May 16, 2026 03:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

code analysis

2 participants